﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Shared/Shared.master"
    CodeFile="infoAdd.aspx.cs" Inherits="ltMan_infos_infoAdd" %>

<asp:Content ID="C1" ContentPlaceHolderID="head" runat="Server">
    <style>
        .container {
            overflow: auto;
        }
    </style>
</asp:Content>
<asp:Content ID="C2" ContentPlaceHolderID="CPH1" runat="Server">
<telerik:RadCodeBlock runat="server">
<script>
    var win1;
    function selectFile() {
        win1 = radopen('fileSelector.aspx');
        win1.setSize(300, 300);
        win1.set_title('选择文件');
    }

    function setSrc(src) {
        if (win1) win1.close();
        $find('<%=txt_url.ClientID %>').set_value(src);
    }
</script>
</telerik:RadCodeBlock>
    <telerik:RadAjaxManagerProxy runat="server" ID="proxy1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadSave">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="mainPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <asp:Panel ID="mainPanel" runat="server" class="pad10">
        <telerikEx:InfoPanel runat="server" ID="infoPanel" />
        <table class="stab">
            <tr>
                <td>
                    资料名称：
                </td>
                <td>
                    <telerik:RadTextBox runat="server" ID="txt_tname" Width="215" MaxLength="100" EmptyMessage="输入名称" /><asp:RequiredFieldValidator
                        runat="server" ID="r1" ControlToValidate="txt_tname" ErrorMessage="请输入名称" Display="None" />
                </td>
            </tr>
            <tr>
                <td>
                    部门名称：
                </td>
                <td>
                    <telerik:RadTextBox runat="server" ID="txt_bm_name" Width="215" MaxLength="50" EmptyMessage="输入部门名称" />
                </td>
            </tr>
            <tr>
                <td>
                    业务名称：
                </td>
                <td>
                    <telerik:RadTextBox runat="server" ID="txt_yu_name" Width="215" MaxLength="50" EmptyMessage="输入业务名称" />
                </td>
            </tr>
            <tr>
                <td>
                    资料简介：
                </td>
                <td>
                    <telerik:RadTextBox runat="server" ID="txt_info" Width="215" Height="90" MaxLength="500"
                        TextMode="MultiLine" EmptyMessage="输入资料简介" />
                </td>
            </tr>
            <tr>
                <td>
                    上传资料：
                </td>
                <td>
                    <telerikEx:AsyncUploadEx ID="tFile" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    下载地址：
                </td>
                <td>
                    <telerik:RadTextBox runat="server" ID="txt_url" Width="150" MaxLength="100" /><telerik:RadButton Icon-PrimaryIconCssClass="icon-explore" Text="选择" OnClientClicking="selectFile" runat="server" UseSubmitBehavior="false" AutoPostBack="false" CausesValidation="false" />
                </td>
            </tr>
            <tr>
                <td colspan="2" class="ta-center">
                    <asp:Button ID="RadSave" runat="server" Text="保存" ToolTip="保存" CssClass="icon-text2 icon-save"
                        OnClick="RadSave_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>